﻿using DiffuseEnjoyIdle.Entity.Entitys;
using DiffuseEnjoyIdle.Model.Dto;
using Mapster;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DiffuseEnjoyIdle.Extension.Extensions.Mapster
{
    public class MapsterRegister : IRegister
    {
        public void Register(TypeAdapterConfig config)
        {
            TypeAdapterConfig.GlobalSettings.ForType<Users, UserDto>()
                .TwoWays()
                .Ignore(a => a.Id);
        }
    }
}